Optimal. Leaf size=40 \[ \frac{(a-2 b) \tanh ^{-1}(\cosh (c+d x))}{2 d}-\frac{a \coth (c+d x) \text{csch}(c+d x)}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04142, antiderivative size = 40, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {3012, 3770} \[ \frac{(a-2 b) \tanh ^{-1}(\cosh (c+d x))}{2 d}-\frac{a \coth (c+d x) \text{csch}(c+d x)}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3012
Rule 3770
Rubi steps
\begin{align*} \int \text{csch}^3(c+d x) \left (a+b \sinh ^2(c+d x)\right ) \, dx &=-\frac{a \coth (c+d x) \text{csch}(c+d x)}{2 d}-\frac{1}{2} (a-2 b) \int \text{csch}(c+d x) \, dx\\ &=\frac{(a-2 b) \tanh ^{-1}(\cosh (c+d x))}{2 d}-\frac{a \coth (c+d x) \text{csch}(c+d x)}{2 d}\\ \end{align*}
Mathematica [B] time = 0.0320482, size = 99, normalized size = 2.48 \[ -\frac{a \text{csch}^2\left (\frac{1}{2} (c+d x)\right )}{8 d}-\frac{a \text{sech}^2\left (\frac{1}{2} (c+d x)\right )}{8 d}-\frac{a \log \left (\tanh \left (\frac{1}{2} (c+d x)\right )\right )}{2 d}+\frac{b \log \left (\sinh \left (\frac{c}{2}+\frac{d x}{2}\right )\right )}{d}-\frac{b \log \left (\cosh \left (\frac{c}{2}+\frac{d x}{2}\right )\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.034, size = 40, normalized size = 1. \begin{align*}{\frac{1}{d} \left ( a \left ( -{\frac{{\rm csch} \left (dx+c\right ){\rm coth} \left (dx+c\right )}{2}}+{\it Artanh} \left ({{\rm e}^{dx+c}} \right ) \right ) -2\,b{\it Artanh} \left ({{\rm e}^{dx+c}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.05464, size = 169, normalized size = 4.22 \begin{align*} \frac{1}{2} \, a{\left (\frac{\log \left (e^{\left (-d x - c\right )} + 1\right )}{d} - \frac{\log \left (e^{\left (-d x - c\right )} - 1\right )}{d} + \frac{2 \,{\left (e^{\left (-d x - c\right )} + e^{\left (-3 \, d x - 3 \, c\right )}\right )}}{d{\left (2 \, e^{\left (-2 \, d x - 2 \, c\right )} - e^{\left (-4 \, d x - 4 \, c\right )} - 1\right )}}\right )} - b{\left (\frac{\log \left (e^{\left (-d x - c\right )} + 1\right )}{d} - \frac{\log \left (e^{\left (-d x - c\right )} - 1\right )}{d}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.9364, size = 1323, normalized size = 33.08 \begin{align*} -\frac{2 \, a \cosh \left (d x + c\right )^{3} + 6 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} + 2 \, a \sinh \left (d x + c\right )^{3} + 2 \, a \cosh \left (d x + c\right ) -{\left ({\left (a - 2 \, b\right )} \cosh \left (d x + c\right )^{4} + 4 \,{\left (a - 2 \, b\right )} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} +{\left (a - 2 \, b\right )} \sinh \left (d x + c\right )^{4} - 2 \,{\left (a - 2 \, b\right )} \cosh \left (d x + c\right )^{2} + 2 \,{\left (3 \,{\left (a - 2 \, b\right )} \cosh \left (d x + c\right )^{2} - a + 2 \, b\right )} \sinh \left (d x + c\right )^{2} + 4 \,{\left ({\left (a - 2 \, b\right )} \cosh \left (d x + c\right )^{3} -{\left (a - 2 \, b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) + a - 2 \, b\right )} \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) + 1\right ) +{\left ({\left (a - 2 \, b\right )} \cosh \left (d x + c\right )^{4} + 4 \,{\left (a - 2 \, b\right )} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} +{\left (a - 2 \, b\right )} \sinh \left (d x + c\right )^{4} - 2 \,{\left (a - 2 \, b\right )} \cosh \left (d x + c\right )^{2} + 2 \,{\left (3 \,{\left (a - 2 \, b\right )} \cosh \left (d x + c\right )^{2} - a + 2 \, b\right )} \sinh \left (d x + c\right )^{2} + 4 \,{\left ({\left (a - 2 \, b\right )} \cosh \left (d x + c\right )^{3} -{\left (a - 2 \, b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) + a - 2 \, b\right )} \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) - 1\right ) + 2 \,{\left (3 \, a \cosh \left (d x + c\right )^{2} + a\right )} \sinh \left (d x + c\right )}{2 \,{\left (d \cosh \left (d x + c\right )^{4} + 4 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} + d \sinh \left (d x + c\right )^{4} - 2 \, d \cosh \left (d x + c\right )^{2} + 2 \,{\left (3 \, d \cosh \left (d x + c\right )^{2} - d\right )} \sinh \left (d x + c\right )^{2} + 4 \,{\left (d \cosh \left (d x + c\right )^{3} - d \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) + d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.25302, size = 136, normalized size = 3.4 \begin{align*} \frac{{\left (a - 2 \, b\right )} \log \left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )} + 2\right )}{4 \, d} - \frac{{\left (a - 2 \, b\right )} \log \left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )} - 2\right )}{4 \, d} - \frac{a{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}}{{\left ({\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{2} - 4\right )} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]